using System.IO;

namespace Pronghorn.Core
{
	public class MetaTag : IRenderable
	{
		#region Constructors

		public MetaTag(string name, string content)
		{
			Name = name;
			Content = content;
		}

		#endregion Constructors

		#region Protected Properties

		protected string Content
		{
			get; private set;
		}

		protected string Name
		{
			get; private set;
		}

		#endregion Protected Properties

		#region Public Methods

		public virtual void Render(TextWriter writer)
		{
			writer.WriteLine(string.Format("<meta name=\"{0}\" value=\"{1}\"/>",Name,Content));
		}

		#endregion Public Methods
	}
}